<%--
  Created by IntelliJ IDEA.
  User: KaiFaBu010
  Date: 2017-12-22
  Time: 18:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <jsp:include page="/WEB-INF/jsp/head.jsp">
        <jsp:param value="下班结算" name="pageTitle"/>
    </jsp:include>
    <script type="text/javascript" src="/js/common.js"></script>
</head>

<style>

    #fundNumT {
        border: 0;
        border-collapse: collapse;
        margin-bottom: 10px;
    }
    #fundNumT tr td {
        padding: 8px;
        border: 1px solid #95b8e7;
    }
    #fundNumT  td{
        width: 100px;
        text-align: right;
    }

</style>
<body>


<div class="easyui-panel" data-options="fit:true,border:false">
    <div id="tb" style="padding:4px;width:100%;">
        <a href="javascript:history.go(-1);" id="lbtnBack" title="后退" class="easyui-linkbutton"><i class="fa fa-undo"></i>&nbsp;返回</a>
    </div>
    <div>
        <form>
        <table id="fundNumT" >
            <c:set var="shiftAccByDea"  value="${thisShiftAccByDea}"/>
            <c:forEach items="${shiftAccByDea}" var="each_AccByDea">
            <tr>
                <input type="hidden" class="adid" name="adid" value="${each_AccByDea.adid}" />
                <td>游戏名：${each_AccByDea.gname}</td>
                <td>游戏账号：${each_AccByDea.accountnum}</td>
                <td>游戏账号：${each_AccByDea.accountnum}</td>
                <td>交易前分数：${each_AccByDea.initialscore}</td>
                <td>随账出分：${each_AccByDea.sendscore}</td>
                <td>随账得分：${each_AccByDea.getscore}</td>
                <td>请输入未敲分数:</td>
                <td>
                    <input class="easyui-numberbox yj-text" type="text" id="canotscore" groupSeparator="," data-options="min:0,precision:2,required:true"
                           style="text-align:right" name="canotscore" value="0"/>
                </td>
                <td>请输入账号最后分数:</td>
                <td>
                    <input class="easyui-numberbox yj-text" type="text" id="finalscore" groupSeparator="," data-options="min:0,precision:2,required:true"
                           style="text-align:right" name="finalscore" value="0"/>
                </td>
            </tr>
            </c:forEach>

        </table>
        </form>
    </div>
</div>
<script>
    //提交下班需要更改的数据
    $("#lbtnDel").click(function(){
        var rows = $('#specialDelTb').datagrid('getSelections');
        if(rows.length != 1){
            $.messager.show({
                title:'删除项目',
                msg:"未选中记录",
                timeout:5000,
                showType:'slide'
            });
        }
        if(rows.length == 1){
            $.messager.confirm("删除警告", "您确定要删除"+rows.length+"记录吗？", function (data) {
                if (data) {
                    var row = $('#specialDelTb').datagrid('getSelected');
                    var sid = row.sid;
                    $.ajax({
                        type:"POST",
                        url:"/#",
                        data:{
                            "deleteId":sid
                        },
                        dataType:"json",
                        success: function(data){
                            $.messager.show({
                                title:'删除项目基本信息',
                                msg:data["msg"],
                                timeout:5000,
                                showType:'slide'
                            });

                        }
                    })
                }
                else {}
            });
        }
    });



</script>
</body>
</html>
